home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Found / FWString / Sources / FWCharac.cpp next >
Encoding:
Text File  |  1994-04-21  |  840 b   |  32 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWCharac.cpp
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Creation Date:        3/28/94
  7. //
  8. //    Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FWCHARAC_H
  13. #include "FWCharac.h"
  14. #endif
  15.  
  16. #pragma segment Strings
  17.  
  18. //----------------------------------------------------------------------------------------
  19. //    FW_StringLength
  20. //----------------------------------------------------------------------------------------
  21.  
  22. FW_CharacterCount FW_StringLength(const FW_Char * string)
  23. {
  24.     // ???JEL - Needs to be internationalized.
  25.     register const FW_Char * s = string;
  26.     const FW_Char nul = 0;
  27.     while (*s++ != nul)
  28.     {}
  29.     return (s - string - 1);
  30. }
  31.  
  32.